package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 店铺满减表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_shop_discount")
@ApiModel(value = "XhShopDiscount对象", description = "店铺满减表")
public class XhShopDiscount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联门店ID")
    private Integer shopId;

    @ApiModelProperty("类型，1.租赁套餐")
    private Integer type;

    @ApiModelProperty("活动名称")
    private String name;

    @ApiModelProperty("门槛价格")
    private BigDecimal threshold;

    @ApiModelProperty("优惠金额")
    private BigDecimal amount;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("是否启用：0.否1.是(默认)")
    private Integer isEnabled;

    @ApiModelProperty("是否删除：0.否(默认)1.是")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
